/*
  app 升级
*/
import 'package:json_annotation/json_annotation.dart';

part 'app.g.dart';

@JsonSerializable()
class AppUpdateRequestEntity {
  String device;
  String channel;
  String architecture;
  String model;

  AppUpdateRequestEntity({
    required this.device,
    required this.channel,
    required this.architecture,
    required this.model,
  });

  factory AppUpdateRequestEntity.fromJson(Map<String, dynamic> json) => _$AppUpdateRequestEntityFromJson(json);

  Map<String, dynamic> toJson() => _$AppUpdateRequestEntityToJson(this);
}

@JsonSerializable()
class AppUpdateResponseEntity {
  String shopUrl;
  String fileUrl;
  String latestVersion;
  String latestDescription;

  AppUpdateResponseEntity({
    required  this.shopUrl,
    required  this.fileUrl,
    required  this.latestVersion,
    required   this.latestDescription,
  });

  factory AppUpdateResponseEntity.fromJson(Map<String, dynamic> json) => _$AppUpdateResponseEntityFromJson(json);

  Map<String, dynamic> toJson() => _$AppUpdateResponseEntityToJson(this);
}
